import unittest
from shopping import shopping_list
class testshoppinglist(unittest.TestCase):
    def setUp(self):
        self.shopping = shopping_list({"牙刷": 5, "沐浴露": 15, "电池": 7})
    def test_get_item_count(self):
         self.assertEqual(self.shopping.get_item_count(),3)

    def test_get_total_price(self):
         self.assertEqual(self.shopping.get_total_price(),27)




